package org.panda.spring;

import org.panda.spring.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
//        ApplicationContext context = new ClassPathXmlApplicationContext("application-nvr.yml");
        UserService userServer = (UserService) context.getBean("userService");
        userServer.show1();
        userServer.show2();
    }
}